export const  $http = async (options) => {
	const { url, data } = options
	const dataOBJ = { user_id: "60c2d733f6a3980001d73348" ,...data}
	try{
		let tabbarList = await uniCloud.callFunction({ name:url,data:dataOBJ})
		if (tabbarList.result.status === 200){
			// console.warn( tabbarList.result.data)

			return tabbarList.result.data
		} else {
			console.error("請求出錯",tabbarList.result)
		}
	}catch(e){
		//TODO handle the exception
		console.error("請求出錯",e)
	}
}
